import java.sql.SQLException;
import java.util.Scanner;

public class TestMain {
    public static void main(String[] args) throws SQLException {
        Solution solution = new Solution();
        Scanner scanner = new Scanner(System.in);
        Boolean tmp = true;
        while(tmp) {
            System.out.println("请选择：");
            System.out.println("1.添加   2.删除");
            System.out.println("3.查看   4.退出");
            int a = scanner.nextInt();
            switch (a) {
                case 1:
                    solution.insert();
                    break;
                case 2 :
                    solution.delect();
                    break;
                case 3:
                    solution.select();
                    break;
                case 4:
                    tmp = false;
                default:
                    break;
            }
        }
    }
}
